const seq = require('sequelize')

exports.create_date = {
  create_time: {
    // 创建时间戳
    type: seq.DATE(),
    comment: '创建时间',
    field: 'create_time',
    defaultValue: () => {
      return Date.now()
    } /* 时间戳 */
  }
}

exports.update_date = {
  update_time: {
    // 更新时间戳
    type: seq.DATE(),
    comment: '更新时间',
    field: 'update_time'
  }
}

exports.create_by = {
  create_by: {
    // 创建时间戳
    type: seq.INTEGER(11),
    comment: '创建人',
    field: 'create_by',
  }
}

exports.update_by = {
  update_by: {
    // 更新时间戳
    type: seq.INTEGER(11),
    comment: '更新人',
    field: 'update_by',
  }
}

